/**
 * 
 */
package ccrClasses.layer2;

import ccrClasses.ICcr;

/**
 * @author matheus
 *
 */
public class Reaction implements ICcr{
	
	public static String OPEN_TAG = "<Reaction>";

	public static String CLOSE_TAG = "</Reaction>";
	
	private Severity severity;

	public Reaction(Severity severity) {
		super();
		this.severity = severity;
	}

	public Reaction() {
		super();
	}

	/**
	 * @return the severity
	 */
	public Severity getSeverity() {
		return severity;
	}

	/**
	 * @param severity the severity to set
	 */
	public void setSeverity(Severity severity) {
		this.severity = severity;
	}

	/**
	 * @return the oPEN_TAG
	 */
	public String getOPEN_TAG() {
		return OPEN_TAG;
	}

	/**
	 * @return the cLOSE_TAG
	 */
	public String getCLOSE_TAG() {
		return CLOSE_TAG;
	}

	@Override
	public String constructCcrString() {
		return new String(OPEN_TAG + severity.constructCcrString() + CLOSE_TAG);
	} 
	
	

}
